package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.MyCarsModule;
import pers.zh.parking.mvp.contract.MyCarsContract;

import com.jess.arms.di.scope.ActivityScope;

import pers.zh.parking.mvp.ui.activity.MyCarsActivity;

@ActivityScope
@Component(modules = MyCarsModule.class, dependencies = AppComponent.class)
public interface MyCarsComponent {

    void inject(MyCarsActivity activity);

    @Component.Builder
    interface Builder {

        @BindsInstance
        MyCarsComponent.Builder view(MyCarsContract.View view);

        MyCarsComponent.Builder appComponent(AppComponent appComponent);

        MyCarsComponent build();
    }
}